package com.service.impl;
import java.util.List;  
import com.model.Student; 
import com.dao.StundentDAO;  
import com.service.StudentService;  
  
public class StudentServiceImpl implements StudentService {
	private StundentDAO dao;  
    
    public StundentDAO getDao() {  
        return dao;  
    }  
  
    public void setDao(StundentDAO dao) {  
        this.dao = dao;  
    }  
  
    public void doCreateUser(Stundent student) {  
        this.dao.doCreateUser(student);  
    }  
  
    public List<Stundent> findAllUsers() {  
        return this.dao.findAllUsers();  
    }  
  
    public void delete(Stundent student) {  
        this.dao.removeUser(student);  
    }  
  
    public void update(Stundent student) {  
        this.dao.updateUser(student);  
    }  
  
    public Stundent findUserById(int id) {  
        return this.dao.findUserById(id);  
    }  
}
